{% extends "base/base_fullscreen.html" %}
{% load leaflet_tags %}
{% load staticfiles %}

{% block content %}
{% csrf_token %}
{% leaflet_map "mainmap" callback="window.map_init_basic" %}
{% endblock %}

{% block css %}
{% leaflet_css %}
<link href="{% static 'css/map.css' %}" rel="stylesheet" media="screen">
{% endblock %}

{% block js %}
{% leaflet_js %}
<script>
    var bounds;
    var progress = -1;

    var url_track_ids    = "{% url 'track:json_ids' %}",
        url_track_json   = "{% url 'track:json' id=0 %}",
        url_track_view   = "{% url 'track:view' id=0 %}",
        url_track_edit   = "{% url 'track:edit' id=0 %}",
        url_track_delete = "{% url 'track:json_delete' id=0 %}";

    var url_route_ids    = "{% url 'route:json_ids' %}",
        url_route_json   = "{% url 'route:json' id=0 %}",
        url_route_view   = "{% url 'route:view' id=0 %}",
        url_route_edit   = "{% url 'route:edit' id=0 %}",
        url_route_delete = "{% url 'route:json_delete' id=0 %}";

    var url_poi_ids    = "{% url 'poi:json_ids' %}",
        url_poi_json   = "{% url 'poi:json' id=0 %}",
        url_poi_view   = "{% url 'poi:view' id=0 %}",
        url_poi_edit   = "{% url 'poi:edit' id=0 %}",
        url_poi_delete = "{% url 'poi:json_delete' id=0 %}";
</script>
<script src="{% static 'js/map.js' %}"></script>
{% endblock %}
